﻿//********************************************************************************//
//创建作者：<朱大鹏>
//功能说明：月度来函流程控件
//modify by guodengjie at 20170726
//********************************************************************************//

using System;
using System.Web.UI;
using BLL;
using BLL.Access;
using Entity;

namespace Web.Controls.LAIHAN
{
    public partial class YUEDUTZLC : UserControl
    {
        #region 属性

        //public int FocusIndexGV
        //{
        //    get { return Convert.ToInt32(ViewState["RowIndex"] == null ? "-1" : ViewState["RowIndex"]); }
        //    set { ViewState["RowIndex"] = value; }
        //}

        //private int _LAIHANLCZT;
        ///// <summary>
        ///// 来函流程状态
        ///// </summary>
        //public int LAIHANLCZT
        //{
        //    get { return _LAIHANLCZT; }
        //    set { _LAIHANLCZT = value; }
        //}
        //private int _LAIHANLX;
        ///// <summary>
        ///// 来函类型
        ///// </summary>
        //public int LAIHANLX
        //{
        //    get { return _LAIHANLX; }
        //    set { _LAIHANLX = value; }
        //}

        //private string _ZHANDIANBH;
        ///// <summary>
        ///// 站点编号
        ///// </summary>
        //public string ZHANDIANBH
        //{
        //    get { return _ZHANDIANBH; }
        //    set { _ZHANDIANBH = value; }
        //}
        /// <summary>
        ///     来函类型
        /// </summary>
        public eLaiHanLX LaiHanLX { get; set; }

        /// <summary>
        ///     来函流程
        /// </summary>
        public eLaiHanLCBH LaiHanLC { get; set; }

        private string fs
        {
            get { return Convert.ToString(ViewState["fs"]); }
            set { ViewState["fs"] = value; }
        }

        private string lhbh
        {
            get { return Convert.ToString(ViewState["lhbh"]); }
            set { ViewState["lhbh"] = value; }
        }

        #endregion

        #region 变量

        /// <summary>
        ///     来函信息
        /// </summary>
        private YS_LH_LAIHANXXProcess blllh = new YS_LH_LAIHANXXProcess();

        /// <summary>
        ///     来函用户信息
        /// </summary>
        private YS_LH_YONGHUXXProcess laihanyhxx = new YS_LH_YONGHUXXProcess();

        /// <summary>
        ///     访问数据库
        /// </summary>
        private SpHelper _sphelper = new SpHelper();

        /// <summary>
        ///     月调整
        /// </summary>
        private YS_LH_YUETIAOZProcess bllyue = new YS_LH_YUETIAOZProcess();

        /// <summary>
        ///     管理块
        /// </summary>
        private YS_JX_GUANLIKBLL glkbll = new YS_JX_GUANLIKBLL();

        /// <summary>
        ///     流程
        /// </summary>
        private YS_LH_LAIHANLCJLBLL lcbll = new YS_LH_LAIHANLCJLBLL();

        /// <summary>
        ///     用户信息
        /// </summary>
        private YS_YG_YONGHUXXBLL yhbll = new YS_YG_YONGHUXXBLL();

        /// <summary>
        ///     账号信息
        /// </summary>
        private AS_UserInfoBLL userbll = new AS_UserInfoBLL();

        #endregion

        #region 事件

        /// <summary>
        ///     页面加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            fs = Request["fs"];
            lhbh = Request["lhbh"];
            UCLHLCLAIHANXX.LaiHanLC = LaiHanLC;
            UCLHLCYIJIANS.LaiHanLC = LaiHanLC;
            UCLHLCBTNS.LaiHanLC = (int) LaiHanLC;
            UCLHLCSHENPI.LaiHanLC = LaiHanLC;
            UCLHXX_YDTZ.LaiHanLC = LaiHanLC;
            if (!IsPostBack) InitControl();
        }

        //protected void btnActPerform_Click(object sender, EventArgs e)
        //{
        //    if (C_GuanLiK.SelectedIndex == 0 && !HiddenList.Contains("h_glk"))
        //    {
        //        HiddenList.Set("h_glk", C_GuanLiK.Value);
        //    }
        //    BindGV();
        //}
        //protected void BtnLeftContent_Click(object sender, EventArgs e)
        //{
        //    BindRightContent();
        //}
        /// <summary>
        ///     绑定值
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <summary>
        ///     确认按钮操作
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <summary>
        ///     修改按钮操作
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <summary>
        ///     已确认的来函显示背景为绿色，未确认的为默认颜色
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <summary>
        ///     以空条件加载列表
        /// </summary>
        public void LoadList()
        {
            UCLHLCLAIHANXX.BindList(null, string.IsNullOrEmpty(lhbh) ? null : lhbh, null, null,
                !string.IsNullOrEmpty(fs));
            UCLHLCLAIHANXX.SetListChecked(true);
        }


        /// <summary>
        ///     更新申请理由
        /// </summary>
        /// <summary>
        ///     确定验证
        /// </summary>
        /// <returns></returns>
        /// <summary>
        ///     提交
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        /// <summary>
        ///     更新流程记录
        /// </summary>
        /// <param name="laihanbh"></param>
        /// <summary>
        ///     审核通过更新用户信息
        /// </summary>
        /// <param name="laihanbh"></param>
        /// <summary>
        ///     验证指定流程是否复核提交条件
        /// </summary>
        /// <param name="laihanbh"></param>
        /// <param name="count"></param>
        /// <returns></returns>
        /// <summary>
        ///     确认操作
        /// </summary>
        /// <summary>
        ///     初始化加载
        /// </summary>
        private void InitControl()
        {
            if (LaiHanLC == eLaiHanLCBH.业务员)
            {
                lblFlowName.Text = "业务员建议";
            }
            else if (LaiHanLC == eLaiHanLCBH.主任)
            {
                lblFlowName.Text = "主任复核";
            }
            else if (LaiHanLC == eLaiHanLCBH.节水科)
            {
                lblFlowName.Text = "节水科审核";
            }
            else if (LaiHanLC == eLaiHanLCBH.计财科)
            {
                lblFlowName.Text = "计财科长复审";
            }
            else if (LaiHanLC == eLaiHanLCBH.处长)
            {
                if (string.IsNullOrEmpty(fs))
                {
                    lblFlowName.Text = "处长审批";
                }
                else
                {
                    lblFlowName.Text = "复审修改";
                    UCLHLCTOPINFO1.Visible = false;
                    UCLHLCSHENPI.Visible = false;
                    UCLHLCYIJIANS.FSXG = true;
                    UCLHLCBTNS.FSXG = true;
                }
            }
        }
        /// <summary>
        /// 根据来函流程状态设置页面显示内容
        /// </summary>
        //private void SetGVFocuseIndex()
        //{
        //    int vid = 0;
        //    if (!int.TryParse(Request["ID"], out vid))
        //    {
        //        return;
        //    }
        //    for (int i = 0; i < gvLH.VisibleRowCount; i++)
        //    {
        //        HiddenField hid = (HiddenField)gvLH.FindRowCellTemplateControl(i, (GridViewDataColumn)gvLH.Columns[0], "id");


        //        if (Convert.ToInt32(hid.Value) == vid)
        //        {
        //            gvLH.FocusedRowIndex = i;
        //            HiddenList.Set("laihanid", vid);
        //            break;
        //        }
        //    }

        //    BindRightContent();
        //}

        /*
        /// <summary>
        /// 绑定GV
        /// </summary>
        private void BindGV()
        {
            string whereCase = " ";
            string roleid = BLL.BusinessTool.GetTextAndValue(
                      "View_AS_UserInfo", "ROLEID", "ROLEID", null, "userid=" + LoginInfo.CurrentUser.UserID
                  ).Tables[0].Rows[0]["VALUE"].ToString();
            bool IsNeedZHANDIAN = false;
            if (roleid != "9001"&&roleid!="3001"&&roleid!="4001")
            {
                IsNeedZHANDIAN = true;
            }
            if (BusinessTool.ZHANDIANBH() != "00" && BusinessTool.ZHANDIANBH() != "51"&&!IsNeedZHANDIAN)
            {
                whereCase += " and a.S_ZHANDIANBH='" + BusinessTool.ZHANDIANBH() + "'";
            }
            bool glk = true;
            if (!string.IsNullOrEmpty(Request["ID"]) && ViewState["IsFirst"] == null)
            {
                glk = false;
                ViewState["IsFirst"] = 1;
            }
            if (HiddenList.Contains("h_glk")&&HiddenList.Get("h_glk").ToString().Trim().Length > 0 && glk)
            {
                ViewState["IsFirst"] = 1;
                whereCase += string.Format(" and a.s_guanlikbh='{0}'", HiddenList.Get("h_glk").ToString());
            }
            whereCase += string.Format(" and I_LIUCHENGZT=0 and a.I_LIUCHENGBH={0}", this.LAIHANLCZT);
            whereCase += string.Format(" and i_laihanlx={0}", this.LAIHANLX);
            if (txtLaiHanBH.Text.Trim().Length > 0)
            {
                whereCase += string.Format(" and a.S_LAIHANBH='{0}'", txtLaiHanBH.Text);
            }
            if (txtYongHuH.Text.Trim().Length > 0)
            {
                whereCase += string.Format(" and a.S_YONGHUBH='{0}'", txtYongHuH.Text);
            }

            if (Table_YeWuY.Visible)
            {
                int startno = 0;
                if (int.TryParse(txtYeWuYJYL_CX.Text, out startno) && C_TiaoJian1.Text.Trim().Length > 0)
                {
                    whereCase += string.Format(" and I_YEWUYJY{1}{0}", startno, C_TiaoJian1.Text);
                }
                int endno = 0;
                if (int.TryParse(txtYeWuYJYL_CX1.Text, out endno) && C_TiaoJian2.Text.Trim().Length > 0)
                {
                    whereCase += string.Format(" and I_YEWUYJY{1}{0}", endno, C_TiaoJian2.Text);
                }
                if (CK_FuShenXG.Visible)
                {

                }
                if (C_YwWuY.SelectedIndex > 0)
                {
                    whereCase += " and S_YEWUY=" + C_YwWuY.Value;
                }
            }
            if (DIV_YeWwY_ZhuR.Visible)
            {
                if (C_YeWwYHZR.Text.Trim() == "一致")
                {
                    whereCase += " and I_ZHUREN=I_YEWUYJY ";
                }
                else if (C_YeWwYHZR.Text.Trim() == "不一致")
                {
                    whereCase += " and I_ZHUREN<>I_YEWUYJY ";
                }
            }
            if (DIV_YeWuYHKZ.Visible)
            {
                if (C_YeWuYHKZ.Text.Trim() == "一致")
                {
                    whereCase += " and I_ZHUREN=I_JIESHUIKZ ";
                }
                else if (C_YeWuYHKZ.Text.Trim() == "不一致")
                {
                    whereCase += " and I_ZHUREN<>I_JIESHUIKZ ";
                }
            }
           //获取当前登录人角色
           
            if (roleid == "9001")
            {
                whereCase += " and S_YEWUY="+LoginInfo.CurrentUser.UserID;
            }
            SetCheckList(0);
            ClearValue();
            DataSet ds = _sphelper.P_YS_LH_LAIHANCX_WHERE(whereCase);
            if (ds != null && ds.Tables.Count > 0 && ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0)
            {
                HiddenList.Set("laihanid", ds.Tables[0].Rows[0]["ID"].ToString());
                BindRightContent();
            }
            else
            {
                BtnQR.Enabled = false;
                BtnXG.Enabled = false;
                BtnTJ.Enabled = false;

                BtnXXXX.Enabled = false;
                BtnYSSF.Enabled = false;
                BtnWJLB.Enabled = false;

                ClearValue();
            }

            gvLH.DataSource = ds.Tables[0];
            gvLH.DataBind();
            if (gvLH.VisibleRowCount > 0)
            {
                gvLH.FocusedRowIndex = 0;
                SetGVFocuseIndex();
            }
            if (gvLH.VisibleRowCount > FocusIndexGV && FocusIndexGV>-1)
            {
                HiddenList.Set("laihanid", ds.Tables[0].Rows[FocusIndexGV]["ID"].ToString());
                gvLH.FocusedRowIndex = FocusIndexGV;
                BindRightContent();
            }
            SetCheckList(1);
        }
        /// <summary>
        /// 记录选中行号以及设置选中行
        /// </summary>
        /// <param name="type"></param>
        private void SetCheckList(int type)
        {
            
            if (type == 0)
            {
                
                string ids = "";
                for (int i = 0; i < gvLH.VisibleRowCount; i++)
                {
                    CheckBox ck = (CheckBox)gvLH.FindRowCellTemplateControl(i, (GridViewDataColumn)gvLH.Columns[0], "cid");

                    if (ck.Checked)
                    {
                        HiddenField hid = (HiddenField)gvLH.FindRowCellTemplateControl(i, (GridViewDataColumn)gvLH.Columns[0], "id");
                        ids += hid.Value + ",";
                    }
                }
                HiddenList.Set("CheckListValues", ids);
            }
            else
            {
                
                string ids = HiddenList.Contains("CheckListValues")?HiddenList.Get("CheckListValues").ToString():"";
                string[] arrids = ids.Split(',');
                for (int i = 0; i < gvLH.VisibleRowCount; i++)
                {
                    CheckBox ck = (CheckBox)gvLH.FindRowCellTemplateControl(i, (GridViewDataColumn)gvLH.Columns[0], "cid");
                    HiddenField hid = (HiddenField)gvLH.FindRowCellTemplateControl(i, (GridViewDataColumn)gvLH.Columns[0], "id");
                        
                    if (arrids.Contains<string>(hid.Value))
                    {
                        ck.Checked = true;
                    }
                }
            }
        }
         * */
        /*
        /// <summary>
        /// 绑定表单数据
        /// </summary>
        private void BindRightContent()
        {
            string laihan = "";


            if (HiddenList.Get("laihanid").ToString().Trim().Length == 0)
            {
                ClearValue();
                BtnQR.Enabled = false;
                BtnXG.Enabled = false;
                return;
            }
            BtnQR.Enabled = true;
            BtnXG.Enabled = true;
            BtnTJ.Enabled = true;

            BtnXXXX.Enabled = true;
            BtnYSSF.Enabled = true;
            BtnWJLB.Enabled = true;
            int id = Convert.ToInt32(HiddenList.Get("laihanid").ToString());
            YS_LH_LAIHANXX lh = blllh.SelectYS_LH_LAIHANXX(id);
            if (lh == null)
            {

                return;
            }

            laihan = lh.S_LAIHANBH;
            txtXingZhengXKSLBH.Text = lh.S_XUKEBH;
            txtTongYiSPBH.Text = lh.S_TONGYIBM;
            C_GuanLiK.Value = lh.S_GUANLIKBH;
            DataTable lcxx = lcbll.SelectYS_LH_LAIHANLCJLsDynamic(string.Format(" S_LAIHANBH='{0}' and I_LIUCHENGBH={1} ", lh.S_LAIHANBH, 2), "", null);
            if (lcxx != null && lcxx.Rows.Count > 0)
            {
                txtShouLiRQ.Text = Convert.ToDateTime(lcxx.Rows[0]["D_StartDate"]).ToString("yyyy-MM-dd");

            }
            int y = Convert.ToInt32(lh.I_Y);
            int m = Convert.ToInt32(lh.I_M);
            int? Errcode = 0;
            DataSet jhxx = _sphelper.P_YS_LH_YUEDUTZJHXXCX(BusinessTool.ZHANDIANBH(), y, m, lh.S_YONGHUBH.Trim(), out Errcode);
            if (jhxx != null && jhxx.Tables.Count > 0 && jhxx.Tables[0] != null && jhxx.Tables[0].Rows.Count > 0)
            {
                DataRow dr = jhxx.Tables[0].Rows[0];
                txtShangYueCYE.Text = dr["V_ShangYueCYE"].ToString();
                txtShangYueJJE.Text = dr["V_ShangYuJJE"].ToString();
                txtShangYueSY.Text = dr["V_ShangYueSY"].ToString();

                txtChaoYongBL.Text = dr["V_ChaoYongBL"].ToString();
                txtChaoYongE.Text = dr["V_ChaoYongE"].ToString();
                txtChaoYongL.Text = dr["V_ChaoYongL"].ToString();
                txtGuBiaoL.Text = dr["V_GuBiaoL"].ToString();

                txtHuiGuanL.Text = dr["V_HuiGuanL"].ToString();
                txtJiaJiaJE.Text = dr["V_JiaJiaJE"].ToString();
                txtJiaJiaL.Text = dr["V_JiaJiaL"].ToString();
                txtJiaJiaLV.Text = dr["V_JiaJiaLv"].ToString() + "%";
                txtJiJianL.Text = dr["V_JiJianL"].ToString();


                txtYuanJiH.Text = dr["V_YuanJiH"].ToString();
                txtShiYongL.Text = dr["V_ShiYongL"].ToString();

                txtChaoYongJE.Text = dr["V_ChaoYongJE_Z"].ToString();
                txtJiaJiaJEZ.Text = dr["V_JiaJiaJE_Z"].ToString();
                txtJiaJiaLVZ.Text = dr["V_JiaJiaLv_Z"].ToString() + "%";
            }

            DataTable userdt = yhbll.SelectYS_YG_YONGHUXXesDynamic(string.Format(" S_YONGHUH='{0}' and I_LEIXING=0 and i_jlzt=0", lh.S_YONGHUBH), "", null);

            if (userdt != null && userdt.Rows.Count > 0)
            {
                txtYongHuM.Text = userdt.Rows[0]["S_YONGHUM"].ToString();
                cFUFEI.Checked = (userdt.Rows[0]["I_CHENNUOFF"].ToString() == "1");
                cTUOSHOU.Checked = (userdt.Rows[0]["I_SHOUFEIFS"].ToString() == "1");

                DataTable user = BusinessTool.GetTextAndValue("view_as_userinfo", "UserID", "UserName", null, string.Format("UserID={0} ", userdt.Rows[0]["S_YEWUY"])).Tables[0];

                txtYeWuY.Text = user.Rows[0]["Value"].ToString();
            }

           

            txtLY.Text = lh.S_SHENQINGLY;

            HiddenList.Set("h_yonghuh", lh.S_YONGHUBH);

            HiddenList.Set("h_laihanbh", laihan);
            DataTable yuetz = bllyue.SelectYS_LH_YUETIAOZsDynamic(string.Format("S_LAIHANBH='{0}'", laihan), "  ID desc", null);
            if (yuetz != null && yuetz.Rows.Count > 0)
            {
                txtYongHuSQL.Text = yuetz.Rows[0]["I_SHENQINGL"].ToString();

                txtYeWuYJY.Text = yuetz.Rows[0]["S_YEWUYJY"].ToString();
                txtYeWuJYL.Text = yuetz.Rows[0]["I_YEWUYJY"].ToString() == "" ? txtYongHuSQL.Text : yuetz.Rows[0]["I_YEWUYJY"].ToString();
                txtZhuRenYJ_XS.Text = yuetz.Rows[0]["S_ZHUREN"].ToString();
                txtJieShuiKZYJ_XS.Text = yuetz.Rows[0]["S_JIESHUIKZ"].ToString();
                txtJiCcaiKZYJ_XS.Text = yuetz.Rows[0]["S_JICAIKZ"].ToString();
                txtChuZhangYJ_XS.Text = yuetz.Rows[0]["S_CHUZHANG"].ToString();

                txtYeWuYJYL.Text = yuetz.Rows[0]["I_YEWUYJY"].ToString();
                txtZhuRenFHL.Text = yuetz.Rows[0]["I_ZHUREN"].ToString();
                txtJieShuiKZSHL.Text = yuetz.Rows[0]["I_JIESHUIKZ"].ToString();
                txtJiCaiKZFSL.Text = yuetz.Rows[0]["I_JICAIKZ"].ToString();

                txtI_ZhuRenFHL.Text = yuetz.Rows[0]["I_ZHUREN"].ToString() == "" ? txtYeWuJYL.Text : yuetz.Rows[0]["I_ZHUREN"].ToString();
                txtI_JiCaiKZFSL.Text = yuetz.Rows[0]["I_JICAIKZ"].ToString() == "" ? txtI_JieShuiKZSHL.Text : yuetz.Rows[0]["I_JICAIKZ"].ToString();
                txtI_JieShuiKZSHL.Text = yuetz.Rows[0]["I_JIESHUIKZ"].ToString() == "" ? txtI_ZhuRenFHL.Text : yuetz.Rows[0]["I_JIESHUIKZ"].ToString();
                txtI_ChuZhangSPL.Text = yuetz.Rows[0]["I_CHUZHANG"].ToString() == "" ? txtI_JiCaiKZFSL.Text : yuetz.Rows[0]["I_CHUZHANG"].ToString();

                txtZhuRenYJ.Text = yuetz.Rows[0]["S_ZHUREN"].ToString() == "" ? "拟同意，报批。" : yuetz.Rows[0]["S_ZHUREN"].ToString();
                txtS_JieShuiKZSHL.Text = yuetz.Rows[0]["S_JIESHUIKZ"].ToString() == "" ? "拟同意，报批。" : yuetz.Rows[0]["S_JIESHUIKZ"].ToString();
                txtS_JiCaiKZFSL.Text = yuetz.Rows[0]["S_JICAIKZ"].ToString() == "" ? "拟同意，报批。" : yuetz.Rows[0]["S_JICAIKZ"].ToString();
                txtS_ChuZhangYJ.Text = yuetz.Rows[0]["S_CHUZHANG"].ToString() == "" ? "同意" : yuetz.Rows[0]["S_CHUZHANG"].ToString();

                txtYeWuYYJ_XS.Text = yuetz.Rows[0]["S_YEWUYJY"].ToString();

                txtYeWuYJY.ClientEnabled = (yuetz.Rows[0]["S_YEWUYJY"].ToString().Trim().Length == 0);
                txtYeWuJYL.ClientEnabled = (yuetz.Rows[0]["I_YEWUYJY"].ToString().Trim().Length == 0);

                txtI_ChuZhangSPL.ClientEnabled = (yuetz.Rows[0]["I_CHUZHANG"].ToString().Trim().Length == 0);
                txtS_ChuZhangYJ.ClientEnabled = (yuetz.Rows[0]["S_CHUZHANG"].ToString().Trim().Length == 0);

                txtI_JieShuiKZSHL.ClientEnabled = (yuetz.Rows[0]["I_JIESHUIKZ"].ToString().Trim().Length == 0);
                txtS_JieShuiKZSHL.ClientEnabled = (yuetz.Rows[0]["S_JIESHUIKZ"].ToString().Trim().Length == 0);

                txtI_JiCaiKZFSL.ClientEnabled = (yuetz.Rows[0]["I_JICAIKZ"].ToString().Trim().Length == 0);
                txtS_JiCaiKZFSL.ClientEnabled = (yuetz.Rows[0]["S_JICAIKZ"].ToString().Trim().Length == 0);

                txtI_ZhuRenFHL.ClientEnabled = (yuetz.Rows[0]["I_ZHUREN"].ToString().Trim().Length == 0);
                txtZhuRenYJ.ClientEnabled = (yuetz.Rows[0]["S_ZHUREN"].ToString().Trim().Length == 0);
            }
            txtYongHuSQL.ReadOnly = true;
            txtLY.ReadOnly = true;

            
            SetControlStatus();

        }
         * */
        /*
        
         * */
        /*
        /// <summary>
        /// 设置表单不可用
        /// </summary>
        private void SetControlStatus()
        {
            cTUOSHOU.ReadOnly = true;
            cFUFEI.ReadOnly = true;

            txtXingZhengXKSLBH.ReadOnly = true;
            txtTongYiSPBH.ReadOnly = true;

            txtChaoYongBL.ReadOnly = true;
            txtChaoYongE.ReadOnly = true;
            txtChaoYongL.ReadOnly = true;
            txtGuBiaoL.ReadOnly = true;

            txtHuiGuanL.ReadOnly = true;
            txtJiaJiaJE.ReadOnly = true;
            txtJiaJiaL.ReadOnly = true;
            txtJiaJiaLV.ReadOnly = true;
            txtJiJianL.ReadOnly = true;


            txtYuanJiH.ReadOnly = true;

            txtChaoYongJE.ReadOnly = true;
            txtJiaJiaJEZ.ReadOnly = true;
            txtJiaJiaLVZ.ReadOnly = true;

            txtShangYueCYE.ReadOnly = true;
            txtShangYueJJE.ReadOnly = true;
            txtShiYongL.ReadOnly = true;
            txtShangYueSY.ReadOnly = true;

            txtXingZhengXKSLBH.ReadOnly = true;
            txtYeWuY.ReadOnly = true;
            txtYongHuM.ReadOnly = true;
            txtShouLiRQ.ReadOnly = true;
            //if (LAIHANLCZT == 3)
            //{
            //    txtLY.ReadOnly = false;
            //}

            //cTUOSHOU.Enabled = false;
            //cFUFEI.Enabled = false;

            //txtXingZhengXKSLBH.Enabled = false;
            //txtTongYiSPBH.Enabled = false;

            //txtChaoYongBL.Enabled = false;
            //txtChaoYongE.Enabled = false;
            //txtChaoYongL.Enabled = false;
            //txtGuBiaoL.Enabled = false;

            //txtHuiGuanL.Enabled = false;
            //txtJiaJiaJE.Enabled = false;
            //txtJiaJiaL.Enabled = false;
            //txtJiaJiaLV.Enabled = false;
            //txtJiJianL.Enabled = false;


            //txtYuanJiH.Enabled = false;

            //txtChaoYongJE.Enabled = false;
            //txtJiaJiaJEZ.Enabled = false;
            //txtJiaJiaLVZ.Enabled = false;

            //txtShangYueCYE.Enabled = false;
            //txtShangYueJJE.Enabled = false;
            //txtShiYongL.Enabled = false;
            //txtShangYueSY.Enabled = false;

            //txtXingZhengXKSLBH.Enabled = false;
            //txtYeWuY.Enabled = false;
            //txtYongHuM.Enabled = false;
            //txtShouLiRQ.Enabled = false;

        }
         * */

        #endregion
    }
}


/*
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>


        <asp:HiddenField ID="h_zhandian" runat="server" />
        <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallbackCommonComplete(e.result);}"></dx:ASPxCallback>
        <dx:ASPxHiddenField ID="HiddenList" ClientInstanceName="HiddenList" runat="server"></dx:ASPxHiddenField>
        <div style="position: fixed; top: -100px;">
            <dx:ASPxButton ID="BtnBind" ClientInstanceName="BtnBind" UseSubmitBehavior="false" runat="server" OnClick="BtnBind_Click" Text="ASPxButton"></dx:ASPxButton>
            <dx:ASPxButton ID="BtnTJSUBMIT" ClientInstanceName="BtnTJSUBMIT" UseSubmitBehavior="false" runat="server" OnClick="BtnTJ_Click" Text="提交"></dx:ASPxButton>

            <dx:ASPxButton ID="BtnQRSUBMIT" ClientInstanceName="BtnQRSUBMIT" UseSubmitBehavior="false" OnClick="BtnQR_Click" runat="server" Text="确认"></dx:ASPxButton>
            <dx:ASPxButton ID="btnActPerform" ClientInstanceName="btnActPerform" UseSubmitBehavior="false" runat="server" Text="ASPxButton" OnClick="btnActPerform_Click"></dx:ASPxButton>
            <dx:ASPxButton ID="BtnLeftContent" ClientInstanceName="BtnLeftContent" UseSubmitBehavior="false" runat="server" Text="ASPxButton" OnClick="BtnLeftContent_Click"></dx:ASPxButton>
        </div>
        <fieldset style="border: 1px solid  cornflowerblue;">
            <legend><b><span runat="server" id="Span_Title">承办人意见</span></b></legend>


            <table style="width: 100%">
                <tr>

                    <td style="width: 30%" valign="top">
                        <dx:ASPxGridView ID="gvLH" ClientInstanceName="grid" OnHtmlRowPrepared="gvLH_HtmlRowPrepared" FocusedRowChanged="gvWenJianGZ_FocusedRowChanged" runat="server" AutoGenerateColumns="False" KeyFieldName="ID" Width="100%" Theme="Aqua1">
                            <Columns>
                                <dx:GridViewDataTextColumn Caption="" Width="30px">
                                    <DataItemTemplate>
                                        <asp:CheckBox ID="cid" runat="server"  Checked="true"/>
                                        <asp:HiddenField ID="id" runat="server" Value='<%#Eval("ID") %>' />
                                        <asp:HiddenField ID="laihanbh" runat="server" Value='<%#Eval("S_LAIHANBH") %>' />
                                        <asp:HiddenField ID="yonghuh" runat="server" Value='<%#Eval("S_YONGHUBH") %>' />
                                        <asp:HiddenField ID="IsQueRen" runat="server" Value='<%#Eval("YUEDUQR") %>' />
                                    </DataItemTemplate>
                                </dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_LAIHANBH" Caption="登记文号" Width="100px" HeaderStyle-HorizontalAlign="Center"></dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_YONGHUBH" Caption="用户号" Width="80px" HeaderStyle-HorizontalAlign="Center"></dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="300px" HeaderStyle-HorizontalAlign="Center"></dx:GridViewDataTextColumn>
                                <dx:GridViewDataTextColumn Caption="" Width="30px" FieldName="YUEDUQR" Visible="false">
                                </dx:GridViewDataTextColumn>
                            </Columns>
                            <SettingsBehavior AllowSort="false" />
                            <Settings VerticalScrollableHeight="350" VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />
                            <ClientSideEvents RowClick="function(s, e) {
   
                                                    s.GetRowValues(e.visibleIndex, 'ID', SetRowValue);
                                                }" />

                        </dx:ASPxGridView>

                    </td>
                    <td rowspan="2" valign="top">

                        <table style="width: 100%">
                            <tr>

                                <td>
                                    <fieldset style="border: 1px solid  cornflowerblue;">
                                        <table style="width: 100%">
                                            <tr>
                                                <td align="right" style="width: 80px">管理区块：
                                                </td>
                                                <td>

                                                    <dx:ASPxComboBox ID="C_GuanLiK" runat="server" ClientInstanceName="DrpGLK" Width="100%" ValueType="System.String">
                                                        <ClientSideEvents SelectedIndexChanged="function(s,e){SelectChange(s,e);}" />
                                                    </dx:ASPxComboBox>
                                                </td>
                                                <td align="right" style="width: 80px">来函编号：
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtLaiHanBH" runat="server" Width="100%" Text="">
                                                        <ClientSideEvents KeyDown="function(s,e){EnterSelect();}" KeyUp="function(s,e){inputNum(s);}" />
                                                    </dx:ASPxTextBox>

                                                </td>
                                                <td align="right" style="width: 65px">用户号：
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtYongHuH" runat="server" Width="100%">
                                                        <ClientSideEvents KeyDown="function(s,e){EnterSelect();}" KeyUp="function(s,e){inputNum(s);}" />
                                                    </dx:ASPxTextBox>
                                                </td>

                                            </tr>
                                        </table>
                                        <table id="Table_YeWuY" runat="server">
                                            <tr>
                                                <td style="min-width: 80px" align="right">业务员：
                                                </td>
                                                <td style="min-width: 80px">
                                                    <dx:ASPxComboBox ID="C_YwWuY" runat="server" Width="80px" ValueType="System.String">
                                                        <ClientSideEvents SelectedIndexChanged="function(s,e){SelectChange(s,e);}" />
                                                    </dx:ASPxComboBox>
                                                </td>
                                                <td style="min-width: 95px" align="right">承办人建议量：
                                                </td>
                                                <td>
                                                    <dx:ASPxComboBox ID="C_TiaoJian1" runat="server" AutoPostBack="false" Width="40px" ValueType="System.String">
                                                        <ClientSideEvents SelectedIndexChanged="function(s,e){SelectChange(s,e);}" />
                                                        <Items>
                                                            <dx:ListEditItem Text="" Value="" />
                                                            <dx:ListEditItem Text=">" Value=">" />
                                                            <dx:ListEditItem Text=">=" Value=">=" />
                                                            <dx:ListEditItem Text="<" Value="<" />
                                                            <dx:ListEditItem Text="<=" Value="<=" />
                                                            <dx:ListEditItem Text="=" Value="=" />

                                                        </Items>
                                                    </dx:ASPxComboBox>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtYeWuYJYL_CX" runat="server" Width="60px">
                                                        <ClientSideEvents KeyDown="function(s,e){EnterSelect();}" KeyUp="function(s,e){inputNum(s);}" />
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td>
                                                    <dx:ASPxComboBox ID="C_TiaoJian2" runat="server" AutoPostBack="false" Width="40px" ValueType="System.String">
                                                        <ClientSideEvents SelectedIndexChanged="function(s,e){SelectChange(s,e);}" />
                                                        <Items>
                                                            <dx:ListEditItem Text="" Value="" />
                                                            <dx:ListEditItem Text=">" Value=">" />
                                                            <dx:ListEditItem Text=">=" Value=">=" />
                                                            <dx:ListEditItem Text="<" Value="<" />
                                                            <dx:ListEditItem Text="<=" Value="<=" />
                                                            <dx:ListEditItem Text="=" Value="=" />
                                                        </Items>
                                                    </dx:ASPxComboBox>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtYeWuYJYL_CX1" runat="server" Width="60px">
                                                        <ClientSideEvents KeyDown="function(s,e){EnterSelect();}" KeyUp="function(s,e){inputNum(s);}" />
                                                    </dx:ASPxTextBox>

                                                </td>
                                                <td style="min-width: 80px">
                                                    <dx:ASPxCheckBox ID="CK_FuShenXG" runat="server" Text="复审修改" Visible="false"></dx:ASPxCheckBox>
                                                </td>
                                            </tr>
                                        </table>
                                        <table style="width: 100%" runat="server" id="DIV_YeWwY_ZhuR">
                                            <tr>
                                                <td style="width: 130px" align="right">承办人和主任意见：
                                                </td>
                                                <td>
                                                    <dx:ASPxComboBox ID="C_YeWwYHZR" runat="server" AutoPostBack="false" Width="170px" ValueType="System.String">
                                                        <ClientSideEvents SelectedIndexChanged="function(s,e){SelectChange(s,e);}" />
                                                        <Items>
                                                            <dx:ListEditItem Text="" Value=" " />
                                                            <dx:ListEditItem Text="一致" Value="一致" />
                                                            <dx:ListEditItem Text="不一致" Value="不一致" />


                                                        </Items>
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                        </table>
                                        <table style="width: 100%" runat="server" id="DIV_YeWuYHKZ">
                                            <tr>
                                                <td style="width: 130px" align="right">承办人和科长意见：
                                                </td>
                                                <td>
                                                    <dx:ASPxComboBox ID="C_YeWuYHKZ" runat="server" AutoPostBack="false" Width="170px" ValueType="System.String">
                                                        <ClientSideEvents SelectedIndexChanged="function(s,e){SelectChange(s,e);}" />
                                                        <Items>
                                                            <dx:ListEditItem Text="" Value=" " />
                                                            <dx:ListEditItem Text="一致" Value="一致" />
                                                            <dx:ListEditItem Text="不一致" Value="不一致" />
                                                        </Items>
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>

                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <fieldset style="border: 1px solid  cornflowerblue;">
                                        <table style="width: 100%">
                                            <tr>
                                                <td style="width: 55px" align="right">用户名：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtYongHuM" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                                <td style="width: 125px" align="right">行政许可受理编号：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtXingZhengXKSLBH" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                                <td style="width: 95px" align="right">统一审批编码：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtTongYiSPBH" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                        </table>
                                        <table>
                                            <tr>
                                                <td style="width: 70px" align="right">受理日期：
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtShouLiRQ" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>

                                                </td>
                                                <td style="width: 55px" align="right">业务员：
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtYeWuY" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>

                                                </td>
                                                <td style="width: 60px">
                                                    <dx:ASPxCheckBox ID="cTUOSHOU" ReadOnly="true" Text="托收" runat="server"></dx:ASPxCheckBox>
                                                </td>
                                                <td style="width: 80px">
                                                    <dx:ASPxCheckBox ID="cFUFEI" ReadOnly="true" Text="承诺付费" runat="server"></dx:ASPxCheckBox>
                                                </td>
                                            </tr>
                                        </table>
                                        <table style="width: 100%">
                                            <tr>
                                                <td style="width: 70px" align="right">上月实用：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtShangYueSY" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                                <td style="width: 80px" align="right">上月超用额：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtShangYueCYE" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                                <td style="width: 80px" align="right">上月加价额：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtShangYueJJE" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 60px" align="right">原计划：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtYuanJiH" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                                <td style="width: 65px" align="right">基建量：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtJiJianL" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                                <td style="width: 65px" align="right"></td>
                                                <td></td>
                                            </tr>
                                            <tr>
                                                <td style="width: 60px" align="right">实用量：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtShiYongL" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                                <td style="width: 65px" align="right">估表量：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtGuBiaoL" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                                <td style="width: 65px" align="right">回灌量：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtHuiGuanL" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 60px" align="right">超用量：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtChaoYongL" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                                <td style="width: 65px" align="right">超用额：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtChaoYongE" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                                <td style="width: 65px" align="right">超用倍率：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtChaoYongBL" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 60px" align="right">加价量：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtJiaJiaL" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                                <td style="width: 65px" align="right">加价金额：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtJiaJiaJE" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                                <td style="width: 65px" align="right">加价率：</td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtJiaJiaLV" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>

                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                    <br />
                                    <fieldset style="border: 1px solid  cornflowerblue;">
                                        <legend><b>合计</b>
                                        </legend>
                                        <table style="width: 100%">
                                            <tr>
                                                <td style="width: 70px" align="right">超用金额：
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtChaoYongJE" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>

                                                </td>
                                                <td style="width: 65px" align="right">加价金额：
                                                </td>

                                                <td>
                                                    <dx:ASPxTextBox ID="txtJiaJiaJEZ" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>

                                                </td>
                                                <td style="width: 65px" align="right">加价率：
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtJiaJiaLVZ" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>

                                                </td>

                                            </tr>
                                        </table>
                                    </fieldset>
                                    <br />
                                    <div runat="server" id="Div_YiJian">
                                        <fieldset style="border: 1px solid  cornflowerblue;">
                                            <table style="width: 100%">
                                                <tr runat="server" id="tr_ZhuRen">
                                                    <td align="right" style="width: 120px">主任意见：</td>
                                                    <td>
                                                        <dx:ASPxTextBox ID="txtZhuRenYJ_XS" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>

                                                    </td>
                                                </tr>
                                                <tr runat="server" id="tr_JieShuiKZ">
                                                    <td align="right" style="width: 120px">节水科长意见：</td>
                                                    <td>
                                                        <dx:ASPxTextBox ID="txtJieShuiKZYJ_XS" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>

                                                    </td>
                                                </tr>
                                                <tr runat="server" id="tr_JiCaiKZ">
                                                    <td align="right" style="width: 120px">计财科长意见：</td>
                                                    <td>
                                                        <dx:ASPxTextBox ID="txtJiCcaiKZYJ_XS" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>

                                                    </td>
                                                </tr>
                                                <tr runat="server" id="tr_ChuZhang">
                                                    <td align="right" style="width: 120px">处长意见：</td>
                                                    <td>
                                                        <dx:ASPxTextBox ID="txtChuZhangYJ_XS" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>

                                                    </td>
                                                </tr>
                                            </table>
                                        </fieldset>
                                        <br />
                                    </div>
                                    <fieldset style="border: 1px solid  cornflowerblue;">
                                        <table style="width: 100%">
                                            <tr>
                                                <td   style="min-width: 80px" align="center">用户申请量：</td>
                                                <td style="min-width: 100px" align="center" runat="server"><span runat="server" id="td_YeWUY_TOP">承办人建议量：</span></td>
                                                <td style="min-width: 80px" align="center" runat="server"><span runat="server" id="td_ZhuRen_TOP">主任复核量：</span></td>
                                                <td style="min-width: 120px" align="center" runat="server"><span runat="server" id="td_JieShuiKZ_TOP">节水科长审核量：</span></td>
                                                <td style="min-width: 120px" align="center" runat="server"><span runat="server" id="td_JiCaiKZ_TOP">计财科长复审量：</span></td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtYongHuSQL" ClientInstanceName="txtYongHuSQL" ReadOnly="true"  runat="server" Width="100%">
                                                       
                                                    </dx:ASPxTextBox>
                                                </td>
                                                <td id="td_YeWUY" runat="server">
                                                    <dx:ASPxTextBox ID="txtYeWuYJYL" ClientInstanceName="txtYeWuYJYL" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                                <td id="td_ZhuRen" runat="server">
                                                    <dx:ASPxTextBox ID="txtZhuRenFHL" ClientInstanceName="txtZhuRenFHL" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                                <td id="td_JieShuiKZ" runat="server">
                                                    <dx:ASPxTextBox ID="txtJieShuiKZSHL" ClientInstanceName="txtJieShuiKZSHL" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                                <td id="td_JiCaiKZ" runat="server">
                                                    <dx:ASPxTextBox ID="txtJiCaiKZFSL" ClientInstanceName="txtJiCaiKZFSL" ReadOnly="true" runat="server" Width="100%"></dx:ASPxTextBox>
                                                </td>
                                            </tr>

                                        </table>
                                    </fieldset>
                                    <br />
                                    <div runat="server" id="Div_YeWuY_SR">
                                        <fieldset style="border: 1px solid  cornflowerblue;">
                                            <table style="width: 100%">
                                                <tr >
                                                    <td style="width: 60px">建议量：</td>
                                                    <td >
                                                        <dx:ASPxTextBox ID="txtYeWuJYL" ClientInstanceName="YeWuYJYLSRK" runat="server" Width="80px">
                                                            <ClientSideEvents KeyUp="function(s,e){txtFocus(-2);}" />
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                  </tr>
                                                <tr>
                                                    <td style="width: 80px">承办人意见：</td>
                                                    <td>
                                                          <dx:ASPxMemo ID="txtYeWuYJY" runat="server"  ClientInstanceName="YeWuYYJSRK" Width="100%" Height="60px"></dx:ASPxMemo>
                           
                                                       <%-- <dx:ASPxTextBox ID="txtYeWuYJY"  runat="server"   ClientInstanceName="YeWuYYJSRK" Width="100%"></dx:ASPxTextBox>--%>
                                                    </td>
                                                    <td style="width:30px"><img oid="osp" src="/Images/hetonggl.png" style="width:20px;height:20px; cursor:pointer" onclick="openSuggest();"/></td>
                                                    
                                                </tr>
                                            </table>
                                        </fieldset>
                                        <br />
                                    </div>
                                    <div runat="server" id="Div_ZhuRen">
                                        <fieldset style="border: 1px solid  cornflowerblue;">
                                            <table style="width: 100%">
                                                <tr>
                                                    <td style="width: 60px">复核量：</td>
                                                    <td style="width: 80px">
                                                        <dx:ASPxTextBox ID="txtI_ZhuRenFHL" ClientInstanceName="ZhuRenJYLSRK" runat="server" Width="80px">
                                                            <ClientSideEvents KeyUp="function(s,e){txtFocus(-3);}" />
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                    <td style="width: 80px">主任意见：</td>
                                                    <td>
                                                        <dx:ASPxTextBox ID="txtZhuRenYJ" ClientInstanceName="ZhuRenYJSRK" runat="server" Width="100%"></dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </fieldset>
                                        <br />
                                    </div>
                                    <div runat="server" id="Div_JieShuiKZ">
                                        <fieldset style="border: 1px solid  cornflowerblue;">
                                            <table style="width: 100%">
                                                <tr>
                                                    <td style="width: 60px">审核量：</td>
                                                    <td style="width: 80px">
                                                        <dx:ASPxTextBox ID="txtI_JieShuiKZSHL" ClientInstanceName="JieShuiLSRK" runat="server" Width="80px">
                                                            <ClientSideEvents KeyUp="function(s,e){txtFocus(-4);}" />
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                    <td style="width: 100px">节水科长意见：</td>
                                                    <td>
                                                        <dx:ASPxTextBox ID="txtS_JieShuiKZSHL" runat="server" ClientInstanceName="JieShuiYJSRL" Width="100%"></dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </fieldset>
                                        <br />
                                    </div>
                                    <div runat="server" id="Div_JiCaiKZ">
                                        <fieldset style="border: 1px solid  cornflowerblue;">
                                            <table style="width: 100%">
                                                <tr>
                                                    <td style="width: 60px">复审量：</td>
                                                    <td style="width: 80px">
                                                        <dx:ASPxTextBox ID="txtI_JiCaiKZFSL" ClientInstanceName="JiCaiLSRK" runat="server" Width="80px">
                                                            <ClientSideEvents KeyUp="function(s,e){txtFocus(-5);}" />
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                    <td style="width: 100px">计财科长意见：</td>
                                                    <td>
                                                        <dx:ASPxTextBox ID="txtS_JiCaiKZFSL" ClientInstanceName="JiCaiYJSRK" runat="server" Width="100%"></dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </fieldset>
                                        <br />
                                    </div>
                                    <div runat="server" id="Div_ChuZhang">
                                        <fieldset style="border: 1px solid  cornflowerblue;">
                                            <table style="width: 100%">
                                                <tr>
                                                    <td style="width: 60px">审批量：</td>
                                                    <td style="width: 80px">
                                                        <dx:ASPxTextBox ID="txtI_ChuZhangSPL" ClientInstanceName="ChuZhangLSRK" runat="server" Width="80px">
                                                            <ClientSideEvents KeyUp="function(s,e){txtFocus(-6);}" />
                                                        </dx:ASPxTextBox>
                                                    </td>
                                                    <td style="width: 80px">处长意见：</td>
                                                    <td>
                                                        <dx:ASPxTextBox ID="txtS_ChuZhangYJ" runat="server" ClientInstanceName="ChuZhangYJSRK" Width="100%"></dx:ASPxTextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </fieldset>
                                        <br />
                                    </div>
                                    <fieldset style="border: 1px solid  cornflowerblue;">
                                        <uc1:UCLHLCBTNS runat="server" ID="UCLHLCBTNS" LaiHanLX="月度" />
                                        <%--<table style="margin: 0px auto; margin-right: 1px">
                                            <tr>
                                                <td align="right">
                                                    <dx:ASPxButton ID="BtnXG" UseSubmitBehavior="false" runat="server" OnClick="BtnXG_Click" Text="修改"></dx:ASPxButton>
                                                    <dx:ASPxButton ID="BtnQR" UseSubmitBehavior="false" AutoPostBack="false" runat="server" Text="确认">
                                                        <ClientSideEvents Click="function(s,e){CheckQR();}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <dx:ASPxButton ID="BtnTJ" UseSubmitBehavior="false" runat="server" AutoPostBack="false" Text="提交">
                                                        <ClientSideEvents Click="function(s,e){
                                                            BtnTJ();}" />
                                                    </dx:ASPxButton>
                                                    <dx:ASPxButton ID="BtnXXXX" UseSubmitBehavior="false" runat="server" Text="详细信息" AutoPostBack="false">
                                                        <ClientSideEvents Click="function(s,e){OpenXXXX()}" />
                                                    </dx:ASPxButton>
                                                    <dx:ASPxButton ID="BtnYSSF" UseSubmitBehavior="false" runat="server" Text="用水/收费情况">
                                                        <ClientSideEvents Click="function(s,e){OpenSFXX();}" />
                                                    </dx:ASPxButton>
                                                    <dx:ASPxButton ID="BtnWJLB" UseSubmitBehavior="false" runat="server" AutoPostBack="false" Text="文件列表">
                                                        <ClientSideEvents Click="function(s,e){OpenWJLB();}" />
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>--%>


                                    </fieldset>
                                </td>
                            </tr>
                        </table>


                    </td>
                </tr>
                <tr>
                    <td>
                        <fieldset style="border: 1px solid  cornflowerblue;">
                            <legend><b>来函内容</b></legend>

                            <dx:ASPxMemo ID="txtLY" ClientInstanceName="txtLY" runat="server" ReadOnly="true" Width="100%" Height="120px"></dx:ASPxMemo>
                           <span runat="server" id="NRIMG"> <img src="/Images/hetonggl.png" style="width:20px;height:20px; cursor:pointer" onclick="openLAIHANNR();"/>
                                  </span>                  
                        </fieldset>
                        <div runat="server" id="DIV_YeWuYYJ">
                            <fieldset style="border: 1px solid  cornflowerblue;">
                                <legend><b>承办人意见</b></legend>
                                <dx:ASPxMemo ID="txtYeWuYYJ_XS" runat="server"  ReadOnly="true" Width="100%" Height="120px"></dx:ASPxMemo>
                            </fieldset>
                        </div>
                    </td>


                </tr>
            </table>

        </fieldset>
        <uc1:UCLHSuggestYiJians runat="server" ID="UCLHSuggestYiJians"   />
        <uc1:UCLHLAIHANNRXX runat="server" id="UCLHLAIHANNRXX" />
    </ContentTemplate>
</asp:UpdatePanel>
*/